<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/cms_edu/Template/qiye/css/reset.css">
    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/cms_edu/Template/qiye/css/style.css">
     <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300' rel='stylesheet' type='text/css'>
    <script src="http://localhost/cms_edu/Template/qiye/js/jquery-1.7.min.js"></script>
    <script src="http://localhost/cms_edu/Template/qiye/js/jquery.easing.1.3.js"></script>
</head>
<body>
<div class="bg">
   <header>
       <div class="main wrap">
       		<h1><a href="http://localhost/cms_edu"><img src="http://localhost/cms_edu/Template/qiye/images/logo.png" alt="公司logo"></a></h1> 
            <p>8901 Marmora, Glasgow <span>8 (010) 123 4567</span></p>
       </div>
       <nav>
          <ul class="menu">
              <li class="current"><a href="http://localhost/cms_edu" class="home"><img src="http://localhost/cms_edu/Template/qiye/images/home.jpg" alt=""></a></li>
			<?php
	$topCate = K('Category')->where("pid=0")->limit(1000)->all();
	foreach($topCate as $field):
	$field['url'] = getCateUrl($field['is_listhtml'],$field['htmldir'],$field['cid']);
?>
	
              <li><a href="<?php echo $field['url'];?>"><?php echo $field['cname'];?></a></li>
			
<?php
	endforeach;
?>
          </ul>
          <div class="clear"></div>
      </nav>
   </header>